//
//  Table.h
//  uteped_sdk
//
//  Created by mateng on 2024/2/28.
//

#import <Foundation/Foundation.h>
#import <FMDB/FMDB.h>

NS_ASSUME_NONNULL_BEGIN

@interface Table : NSObject

@property(nonatomic, strong) NSString *name;
@property(nonatomic, strong) FMDatabase *db;

- (id)initWithName:(NSString*)name db:(FMDatabase*)db;
- (BOOL)saveData:(NSArray*)array;
- (BOOL)updateData:(NSString *)setSql where:(NSString*)where withArgumentsInArray:(NSArray*)args;
- (BOOL)deleteData:(NSString*)where withArgumentsInArray:(NSArray*)args;
- (BOOL)deleteData:(NSInteger)startTime endTime:(NSInteger)endTime address:(NSString*)address;
- (void)clearData;

@end

NS_ASSUME_NONNULL_END
